﻿using MetroDataApi.Models;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace MetroDataApi.Controllers
{
    public class RecentChangesByTimeListController : ApiController
    {
        // GET api/RecentChangesByTimeList
        public string Get(int prjId, string type, string location, string timeList, string fuzzy = "0", bool isDesign = false)
        {
            if (fuzzy != "1")
            {
                return RecentChangesListHelper.GetChangesByList(prjId, type, location, timeList, isDesign);
            }
            else
            {
                return RecentChangesListHelper.GetChangesByStartAndEnd(prjId, type, location, timeList, isDesign);
            }
        }
    }



}
